package com.aipodcast.webbackend.service;

import com.aipodcast.webbackend.config.model.ApiResponse;
import com.aipodcast.webbackend.entity.Courses;
import com.aipodcast.webbackend.entity.vo.CoursePageVo;
import com.aipodcast.webbackend.entity.vo.CourseVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 课程表 服务类
 * </p>
 *
 * @author baomidou
 * @since 2025-09-22
 */
public interface ICoursesService extends IService<Courses> {

    CoursePageVo getCourseList(int pageNum, int pageSize);

    CoursePageVo getCourseListPublic(int pageNum, int pageSize);

    Courses getCourse(String id);

    String getUploadSignUrl();

    String uploadImg(MultipartFile file) throws IOException;

    Boolean addCourse(String userId, CourseVo courseVo);
}
